
<!--
  /**************************************************
  * @ orderreceive.jsp
  *
  *    Copyright (c) 2007-2008 Shanghai Auto-Parts E-Procurement Co., Ltd. 
  *        All rights reserved.
  *
  * Modify History:
  *  v1.00, 2006/03/20, john by Jenny Li's work
  *  1) first release
  /**************************************************
-->
<%@ page contentType="text/html; charset=UTF-8" %>
<%@ include file="../../common.jsp" %>
<%@ taglib uri="/page.util.gs.hitrust.com/taglibs/page" prefix="page"%>
<%@page import="system.LoginContext"%>
<%@page import="framework.core.SrvContext"%>
<html>
<head>
<title>申购单签收</title>
<META http-equiv=Content-Type content="text/html; charset=UTF-8">
<!--<LINK href="< %=root%>/css/css.css" type=text/css rel=stylesheet>-->
<LINK href="<%=root%>/css/caigouxitong.css" type=text/css rel=stylesheet>
<SCRIPT language="JavaScript" src="<%=root%>/js/common.js"></SCRIPT>
<SCRIPT language=javascript src="<%=root%>/framework/js/datePicker/WdatePicker.js"></SCRIPT>
<SCRIPT language="JavaScript" src="<%=root%>/js/string.js"></SCRIPT>
<SCRIPT language="JavaScript" src="<%=root%>/js/hi-check.js"></SCRIPT>
<SCRIPT language="JavaScript" src="<%=root%>/js/func.js"></SCRIPT>

<%
    ArrayList ary = (ArrayList)request.getAttribute("orderdept");
    ResultProcess tOrder = (ResultProcess)request.getAttribute("order");
    ArrayList tList = new ArrayList();
    String isRequery  = (String)request.getAttribute("requery");
%>
<script>
    var counter;
    function control(val){
        if(val == 'requery'){
            <%
                if(isRequery != null && isRequery.equals("true")){
            %>
            orderqueryform.action = "<%=response.encodeURL(root+"/A101302.do")%>";
            orderqueryform.submit();    
            <%      
                }
            %>
        }
    }
    function process(val){
        if(val == 'E'){
            var tStr = "";      
            var tEnd = "";              
            if(!isEmpty(orderqueryform.orderCreateDateStr.value)){
                tStr = orderqueryform.orderCreateDateStr.value.substr(0,4) + orderqueryform.orderCreateDateStr.value.substr(5,2) + orderqueryform.orderCreateDateStr.value.substr(8,2);
            }
            if(!isEmpty(orderqueryform.orderCreateDateEnd.value)){
                tEnd = orderqueryform.orderCreateDateEnd.value.substr(0,4) + orderqueryform.orderCreateDateEnd.value.substr(5,2) + orderqueryform.orderCreateDateEnd.value.substr(8,2);                     
            }
            if(parseInt(tStr) > parseInt(tEnd)){
                    alert("申购单要求送货周期的开始日期不能大于截止日期！");
                    return false;
            }       
            document.getElementById('needexport').value='yes';
            alert('将要开始导出! 为了保证导出数据的顺利，系统仅导出行数为6000条以内的数据。')
            orderqueryform.action = "<%=response.encodeURL(request.getContextPath()+"/A101302.do")%>" ;
            orderqueryform.submit();            
        }
        if(val == 'Q'){
        var iFields1 = new Array(1);
            
            var tStr = "";      
            var tEnd = "";              
            if(!isEmpty(orderqueryform.orderCreateDateStr.value)){
                tStr = orderqueryform.orderCreateDateStr.value.substr(0,4) + orderqueryform.orderCreateDateStr.value.substr(5,2) + orderqueryform.orderCreateDateStr.value.substr(8,2);
            }
            if(!isEmpty(orderqueryform.orderCreateDateEnd.value)){
                tEnd = orderqueryform.orderCreateDateEnd.value.substr(0,4) + orderqueryform.orderCreateDateEnd.value.substr(5,2) + orderqueryform.orderCreateDateEnd.value.substr(8,2);                     
            }
            if(parseInt(tStr) > parseInt(tEnd)){
                alert("申购单要求送货周期的开始日期不能大于截止日期！");
                return false;
            }       
            document.getElementById('needexport').value='no';
            orderqueryform.action = "<%=response.encodeURL(request.getContextPath()+"/A101302.do")%>" ;
            orderqueryform.submit();            
        }else if(val == 'C'){
            orderqueryform.orderDetailId.value ="";
            orderqueryform.orderDeptId.selectedIndex=0;
            orderqueryform.providerName.value ="";
            orderqueryform.concentricityId.value = "";
            orderqueryform.manufInfo.value = "";
            orderqueryform.orderCreateDateStr.value = "";                       
            orderqueryform.orderCreateDateEnd.value = "";   
            orderqueryform.deliverGoodsId.value=""; 
            orderqueryform.drawingpcode.value="";
            return false;

        }else if(val == 'S'){
            if(pager.orderDetailIds != null){       
                if(!isCheckBoxselected(pager,pager.orderDetailIds)){
                    alert("请至少选择一笔订单");
                    return false;
                }else{
                    var icheckChar = "0123456789.";
                    if(document.pager.orderDetailIds.length > 1){
                        var selectedDetailIds = document.pager.orderDetailIds;
                        var FirstSendOrderNO ="null";
                        for(i=0; i<selectedDetailIds.length;i++){
                            if(selectedDetailIds[i].checked){
                            
                                if(FirstSendOrderNO == 'null')
                                    FirstSendOrderNO = pager.sendOrderNO[i].value;
                                if(FirstSendOrderNO != pager.sendOrderNO[i].value) {
                                    alert("只能选择同一送货单内的明细进行签收!");
                                    return false;
                                }
                                if(isEmpty(pager.cursigninCount[i].value) || isNumber(pager.cursigninCount[i].value) == false || pager.cursigninCount[i].value <=0){
                                    alert("请填写签收数量，签收数量必须大于0!");
                                    return false;
                                }

                                if(parseFloat(pager.cursigninCount[i].value) > parseFloat(pager.maxOrderCount[i].value)){
                                    alert("签收数量必须大于0,小于等于"+ pager.maxOrderCount[i].value+"!");
                                    pager.cursigninCount[i].value = pager.maxOrderCount[i].value;
                                    return false;
                                }
                                if(isEmpty(pager.signin_person.value)){
                                    alert("请填写签收人!");
                                    return false;
                                }
                                if(isEmpty(pager.signin_date.value)){
                                    alert("请选择签收日期!");
                                    return false;
                                }             
                                submitform.orderDetailIds2[i].checked = true;
                                submitform.orderDetailIds2[i].value=pager.orderDetailIds[i].value;
                                submitform.cursigninCount2[i].checked = true;
                                submitform.cursigninCount2[i].value=pager.cursigninCount[i].value;
                                submitform.cursigninDate2[i].checked = true;
                                submitform.cursigninDate2[i].value = pager.signin_date.value;
                                submitform.signin_person[i].checked = true;
                                submitform.signin_person[i].value = pager.signin_person.value;
                                submitform.signin_explain[i].checked = true;
                                submitform.signin_explain[i].value = pager.signin_explain.value;
                                
                                
                                submitform.n_ConcentricityId[i].checked = true;
                                submitform.n_ConcentricityId[i].value = pager.n_ConcentricityId1[i].value;
                                submitform.n_GoodsName[i].checked = true;
                                submitform.n_GoodsName[i].value = pager.n_GoodsName1[i].value;
                                submitform.n_SupplyerName[i].checked = true;
                                submitform.n_SupplyerName[i].value = pager.n_SupplyerName1[i].value;                                                                
                                submitform.n_GoodsSpec[i].checked = true;
                                submitform.n_GoodsSpec[i].value = pager.n_GoodsSpec1[i].value;
                                submitform.n_GoodsModel[i].checked = true;
                                submitform.n_GoodsModel[i].value = pager.n_GoodsModel1[i].value;                               
                                submitform.n_GoodsBrand[i].checked = true;
                                submitform.n_GoodsBrand[i].value = pager.n_GoodsBrand1[i].value;                                
                                submitform.n_GoodsCount[i].checked = true;
                                submitform.n_GoodsCount[i].value = pager.n_GoodsCount1[i].value;                                
                                submitform.n_GoodsUnit[i].checked = true;
                                submitform.n_GoodsUnit[i].value = pager.n_GoodsUnit1[i].value;                              
                               }
                        }
                    }else { 
                        if(pager.orderDetailIds.checked){
                                if(isEmpty(pager.cursigninCount.value) || isNumber(pager.cursigninCount.value) == false || pager.cursigninCount.value <=0){
                                    alert("请填写签收数量，签收数量必须大于0!");
                                    return false;
                                }   
                                if(parseInt(pager.cursigninCount.value) > parseInt(pager.maxOrderCount.value)){
                                    alert("签收数量必须大于0,小于等于!"+ pager.maxOrderCount.value+"!");
                                    pager.cursigninCount.value = pager.maxOrderCount.value;
                                    return false;
                                }
                                if(isEmpty(pager.signin_person.value)){
                                    alert("请填写签收人!");
                                    return false;
                                }
                                if(isEmpty(pager.signin_date.value)){
                                    alert("请选择签收日期!");
                                    return false;
                                }                                                   
                                submitform.orderDetailIds2.checked = true;
                                submitform.orderDetailIds2.value=pager.orderDetailIds.value;    
                                submitform.cursigninCount2.checked = true;  
                                submitform.cursigninCount2.value=pager.cursigninCount.value;
                                submitform.cursigninDate2.checked = true;
                                submitform.cursigninDate2.value = pager.signin_date.value; 
                                submitform.signin_person.checked = true;
                                submitform.signin_person.value = pager.signin_person.value;  
                                submitform.signin_explain.checked = true;
                                submitform.signin_explain.value = pager.signin_explain.value;  
                                
                                submitform.n_ConcentricityId.checked = true;
                                submitform.n_ConcentricityId.value = pager.n_ConcentricityId1.value;
                                submitform.n_GoodsName.checked = true;
                                submitform.n_GoodsName.value = pager.n_GoodsName1.value;
                                submitform.n_SupplyerName.checked = true;
                                submitform.n_SupplyerName.value = pager.n_SupplyerName1.value;                                                                
                                submitform.n_GoodsSpec.checked = true;
                                submitform.n_GoodsSpec.value = pager.n_GoodsSpec1.value;
                                submitform.n_GoodsModel.checked = true;
                                submitform.n_GoodsModel.value = pager.n_GoodsModel1.value;                               
                                submitform.n_GoodsBrand.checked = true;
                                submitform.n_GoodsBrand.value = pager.n_GoodsBrand1.value;                                
                                submitform.n_GoodsCount.checked = true;
                                submitform.n_GoodsCount.value = pager.n_GoodsCount1.value;                                
                                submitform.n_GoodsUnit.checked = true;
                                submitform.n_GoodsUnit.value = pager.n_GoodsUnit1.value;                                         
                        }
                    }
                    if(confirm("是否确定按照所填签收数量签收订单？")){ 
                        document.getElementById('needexport').value='no';                   
                        document.submitform.action = "<%=response.encodeURL(root+"/A101304.do")%>";         
                        document.submitform.submit();
                    }else{
                        return false;
                    }           
                }       
            }else{
                return false;
            }   
        }
    }
    
var seleall=false;
function selectall(seleall){
 var f = document.pager;
  if(seleall){
   for (i=0;i<f.elements.length;i++){
    if (f.elements[i].name=="orderDetailIds")f.elements[i].checked =true;
    }
    }
  else{
   for (i=0;i<f.elements.length;i++){
    if (f.elements[i].name=="orderDetailIds")f.elements[i].checked =false;
    }
  }
}
    function openwin(obj){
        var result = null;  
        result = showModalDialog("<%=response.encodeURL(root+"/A150404.do")%>?params=" + obj, window,"status:no;unadorned:no;dialogWidth:900px;dialogHeight:1200px;help:no;");
        if(result != null){
            process('Q');
            //window.location.href = window.location.href;
            //window.location.reload();
        }
    }

</script>
</head>

<body BGCOLOR="#f2f2f2" text="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onLoad="control('requery')">
<form name=orderqueryform method="get" >
<input type='hidden' id ='needexport' name='needexport' value='false'>
<input type="hidden" id="orderDetailStatus" name="orderDetailStatus"   value='10'>  
<p><br></p>
<table width="98%" border="0" cellspacing="0" cellpadding="0" align="center">
    <tr>
        <td height="20">
            <table width="100%" border="0" cellspacing="0" cellpadding="1">
                <tr height="20">
                    <td height="30" width="758" class="mtxt_black">申购单签收
                    </td>
                </tr>
            </table>
        </td>
    </tr>
    <tr>
        <td class="bg_line" height="2"></td>
    </tr>
</table>
<br>
<table width="98%" border="0" cellspacing="0" cellpadding="0" align="center">
    <tr> 
        <td> 
            <table class=bg_table id=tableId cellspacing=1 cellpadding=0 style="padding-left:5;padding-right:5" width=100% align=center border=0>
                <TR height=20>
                    <TD class="bg_column" align=center width="15%">申购单明细编号</TD>
                    <TD align=left class="bg_row_odd" width="35%">
                    <input type="text" name="orderDetailId" value="<%=request.getParameter("orderDetailId")==null? "":request.getParameter("orderDetailId") %>" maxlength="20"></TD>                    
                    <TD class="bg_column" align=center width="15%">供应商</TD>
                    <TD align=left class="bg_row_odd" width="35%">
                    <input type="text" name="providerName" value="<%=request.getParameter("providerName")==null? "":request.getParameter("providerName") %>" maxlength="20"></TD>                                   
                
                </TR>
                <TR height=20>                          
                    <TD class="bg_column" align=center>订货单位</TD>
                    <TD align=left class="bg_row_odd">
                        <select id='orderDeptId' name='orderDeptId'>
                            <option value="<%=LoginContext.get(new SrvContext(request,response)).getLoginWarehouseCode() %>">---全部---</option>
                            <%
                            String tOrderDept = request.getParameter("orderDeptId")==null?"":request.getParameter("orderDeptId");
                              if(ary!=null&&ary.size()>0){
                                 for(int i=0;i<ary.size();i++){ 
                                     GSWareHouseBean tmp=(GSWareHouseBean)ary.get(i);%>
                                    <%if(tmp.getCode().equals(tOrderDept)){ %>
                                        <option value="<%=tmp.getCode() %>" selected><%=tmp.getName() %></option>
                                    <%}else{ %>
                                    <option value="<%=tmp.getCode() %>"><%=tmp.getName() %></option>
                            <%}}} %>                                    
                        </select>
                    </TD>  
                    <TD class="bg_column" align=center>送货单号</TD>
                    <TD align=left class="bg_row_odd">
                    <input type="text" name="deliverGoodsId" maxlength="20" value="<%=request.getParameter("deliverGoodsId")==null?"":request.getParameter("deliverGoodsId")%>">
                    </TD>                     
                </TR>               
                <TR height=20>
                    <TD class="bg_column" align=center>集中编码</TD>
                    <TD align=left class="bg_row_odd">
                    <input type="text" name="concentricityId" maxlength="20" value="<%=request.getParameter("concentricityId")==null?"":request.getParameter("concentricityId")%>"></TD>
                    <TD class="bg_column" align=center>图件号</TD>
                    <TD align=left class="bg_row_odd">
                    <input type="text" name="drawingpcode"  value="<%=request.getParameter("drawingpcode")==null?"":request.getParameter("drawingpcode")%>">
                    </TD>
                </TR>
                <TR height=20>
                    <TD class="bg_column" align=center>产品信息</TD>
                    <TD align=left class="bg_row_odd" colspan="3">
                    <input type="text" name="manufInfo" maxlength="200" value="<%=request.getParameter("manufInfo")==null?"":request.getParameter("manufInfo")%>">（<FONT color="#ff0033">对产品名称、型号、规格、品牌、生产厂商、附加属性等关键字的模糊查询</FONT>）&nbsp;
                    </TD>
                </TR> 
                <%
                SimpleDateFormat bartDateFormat = new SimpleDateFormat("yyyy-MM-dd");
                Date d = new Date();
                String strNow = String.valueOf(bartDateFormat.format(d));
                long l=(long)259200*(long)10000;
                Date d2 = new Date(System.currentTimeMillis()-l);
                String strMothAgo = String.valueOf(bartDateFormat.format(d2));
                
                %>                                  
                <TR height=20>  
                    <TD class="bg_column" align=center>要求送货时间</TD>
                    <TD align=left class="bg_row_odd" colspan="3">
                    <%=framework.custom.UIManager.generateDateInput("orderCreateDateStr",
							request.getParameter("orderCreateDateStr")==null?strMothAgo:request.getParameter("orderCreateDateStr"))%>
					
					至
					 <%=framework.custom.UIManager.generateDateInput("orderCreateDateEnd",
							request.getParameter("orderCreateDateEnd")==null?strNow:request.getParameter("orderCreateDateEnd"))%>
					
                
                    </TD>
                </TR>
            </table>
        </td>
    </tr>
</table>
<%if(tOrder != null){
    int totalRecords = 0;
    if(request.getAttribute("totalRecords")!=null){
        totalRecords=Integer.parseInt((String)request.getAttribute("totalRecords"));
    }
    int defaultPageSize =10;
    if(request.getAttribute("pageSize")!=null){
        defaultPageSize=Integer.parseInt((String)request.getAttribute("pageSize"));
    }
tList = tOrder.getAllRecoreds();
%>          
<page:pager total='<%=totalRecords%>' defaultPageSize='<%=defaultPageSize%>'></page:pager>
<%} %>
</form>
    <p align="center">  
        <input type="button" class="kuang" value="查询" onclick="process('Q')"/>&nbsp;
        <input type="button" class="kuang" value="清空" onclick="process('C')"/>&nbsp;    
        <input type="button" class="kuang" value="导出结果到Excel" onclick="process('E')"/>&nbsp;            
    </p>
<%
    
    if(tOrder != null){
%>



    <center>
    <table width="98%" border="0" cellspacing="0" cellpadding="0" align="center">
        <tr>
            <td>
            <form name='pager' method="post">
                <table class=bg_table id=tableId    cellspacing=1 cellpadding=2 width=100% align=center border=0>
                    <tbody> 
                    <tr class="bg_column" height=20>
                        <td class=top align="center" colspan="20"> 
                        <div align="center" class="txt_content"><b>订单信息列表</b>
                          </div>
                        </td>                   
                    </tr> 
                    <tr class="bg_column" height=20> 
                        <td class=top align="center"> 
                        <input type="checkbox" onclick=selectall(this.checked) id="orderAllselect" name="orderAllselect"> 
                        </td>                    
                        <td class=top align="center"> 
                        <div align="center" class="txt_content">申购单明细编号</div>
                        </td>
                        <td class=top align="center"> 
                        <div align="center" class="txt_content">送货单号</div>
                        </td>
                        <td class=top align="center"> 
                        <div align="center" class="txt_content">集中编码</div>
                        </td>                       
                        <td class=top align="center"> 
                        <div align="center" class="txt_content">产品名称</div>
                        </td>

                        <td class=top align="center"> 
                        <div align="center" class="txt_content">供应商</div>
                        </td>
                    
                        <td class=top align="center"> 
                        <div align="center" class="txt_content">规格</div>
                        </td>
                        <td class=top align="center"> 
                        <div align="center" class="txt_content">型号</div>
                        </td>                                                                                                                                               
                        <td class=top align="center"> 
                        <div align="center" class="txt_content">品牌</div>
                        </td>
                        <td class=top align="center"> 
                        <div align="center" class="txt_content">图件号</div>
                        </td>                                           
                        <td class=top align="center"> 
                        <div align="center" class="txt_content">订货数量</div>
                        </td>                                           
                        <td class=top align="center"> 
                        <div align="center" class="txt_content">申购单明细状态</div>
                        </td>                                                                   
                        <td class=top align="center"> 
                        <div align="center" class="txt_content">要求送货时间</div>
                        </td>                                       
                        <td class=top align="center"> 
                        <div align="center" class="txt_content">订货单位</div>
                        </td>
                                    
                        <td class=top align="center"> 
                        <div align="center" class="txt_content">价格（元）</div>
                        </td>                                       
                        <td class=top align="center"> 
                        <div align="center" class="txt_content">总价（元）</div>
                        </td>
                        
                        <td class=top align="center"> 
                        <div align="center" class="txt_content">配送数量</div>
                        </td>
                        <td class=top align="center"> 
                        <div align="center" class="txt_content">签收数量</div>
                        </td>    
                        <td class=top align="center"> 
                        <div align="center" class="txt_content">结算模式</div>
                        </td>                                   
                        <td class=top align="center"> 
                        <div align="center" class="txt_content">详细信息</div>
                        </td>                                                                                                                                              
                    </tr>
                    <%
                        
                        if(tList != null && tList.size() > 0){
                        for(int i=0; i<tList.size(); i++){
                            GSOrderAnaDetailBean bean=(GSOrderAnaDetailBean)tList.get(i);
                            String tTempStr="";
                            if(i%2==0){
                                tTempStr="class=\"bg_row_odd\"";
                            }else {
                                tTempStr="class=\"bg_row_even\"";
                            }
                    %>

                            <tr <%=tTempStr%> height=20>
                                <td class=top>                              
                                    <div align="center" class="txt_content">
                                        <input type="checkbox" id="orderDetailIds<%=i %>" name="orderDetailIds" value="<%=bean.getGs_order_detail_id()%>">   
                                        <input type="hidden" name="orderIds" value="<%=bean.getGs_order_detail_id()%>">
                                        <input type="hidden" name="orderId" value="<%=bean.getGs_order_tempid()%>">
                                        <input type="hidden" name="n_ConcentricityId1" value="<%=bean.getGs_concentricity_id()%>">
                                        <input type="hidden" name="n_GoodsName1" value="<%=bean.getName_product()%>">   
                                        <input type="hidden" name="n_SupplyerName1" value="<%=bean.getName()%>">    
                                        <input type="hidden" name="n_GoodsSpec1" value="<%=bean.getSpec()%>">
                                        <input type="hidden" name='n_GoodsModel1' value="<%=bean.getModel()%>">
                                        <input type="hidden" name='n_GoodsBrand1' value="<%=bean.getProduct_brand()%>">
                                        <input type="hidden" name='n_GoodsCount1' value="<%=StringUtils.formatEDouble(bean.getGs_order_count(),2)%>">
                                        <input type="hidden" name='n_GoodsUnit1' value="<%=bean.getProduct_unit()%>"> 
                                    </div>
                                </td>
                                <td class=top align="center">                                 
                                    <div align="center" class="txt_content">
                                    <%=bean.getGs_order_detail_id()%>
                                    </div>
                                </td>   
                                <td class=top align="center">                                 
                                    <div align="center" class="txt_content">
                                    <%=bean.getGs_deliver_goods_id()%>
                                    <input id='sendOrderNO' name='sendOrderNO' type="hidden" value="<%=bean.getGs_deliver_goods_id()%>">
                                    </div>
                                </td>                                   
                                <td class=top align="center">                                 
                                    <div align="center" class="txt_content">
                                    <%=bean.getGs_concentricity_id()%>
                                    </div>
                                </td>   
                                <td class=top align="center">                                 
                                    <div align="center" class="txt_content">
                                    <a href="<%=response.encodeURL(root+"/A101303.do")%>?&concentricityId=<%=bean.getGs_concentricity_id()%>" target="_blank"><%=bean.getName_product()%></div>
                                </td>
                                <td class=top align="center" >                                
                                    <div align="center" class="txt_content">
                                    <%=bean.getName()%>
                                    </div>
                                </td>                                   
                                <td class=top align="center"> 
                                    <div align="center" class="txt_content">
                                    <%=bean.getSpec()%>
                                    </div>
                                </td>
                                <td class=top align="center"> 
                                    <div align="center" class="txt_content">
                                    <%=bean.getModel()%>
                                    </div>
                                </td>              
                                <td class=top align="center">                                 
                                    <div align="center" class="txt_content">
                                    <%=bean.getProduct_brand()%>
                                    </div>
                                </td>  
                                <td class=top align="center"> 
                                    <div align="center" class="txt_content">
                                    <%=bean.getDrawing_piece_code()%>
                                    </div>
                                </td>  
                                <td class=top align="center">                                 
                                    <div align="center" class="txt_content">
                                    <%=StringUtils.formatEDouble(bean.getGs_order_count(),2)+" "+bean.getProduct_unit()%>
                                    </div>
                                     <input id='maxOrderCount' name='maxOrderCount' type="hidden" value="<%=bean.getGs_order_count()%>">
                                </td>   
                                <td class=top align="center"> 
                                    <div align="center" class="txt_content">
                                    <%=GSBaseManager.getOrderDetailStatusName(bean.getGs_order_detail_status())%>
                                    </div>
                                </td>   
                                <td class=top align="center"> 
                                    <div align="center" class="txt_content">
                                    <%=bean.getGs_deliver_goods_date()+" "+GSBaseManager.getDeliverGoodsTime(bean.getGs_deliver_goods_time())%>
                                    </div>
                                </td>                                                                                                   
                                <td class=top align="center"> 
                                    <div align="center" class="txt_content">
                                    <%=bean.getName_warehouse()%>
                                    </div>
                                </td>                                                                                                                   
                                <td class=top align="center"> 
                                    <div align="center" class="txt_content">
                                    <%=StringUtils.formatEDouble(bean.getGs_goods_unitprice(),4)%>
                                    </div>
                                </td>                           
                                <td class=top align="center"> 
                                    <div align="center" class="txt_content">
                                    <%=StringUtils.formatEDouble(bean.getGs_goods_unitprice()*bean.getGs_order_count(),4)%>
                                    </div>
                                </td>                           
                                <td class=top align="center"> 
                                    <div align="center" class="txt_content" id="total<%=i%>">
                                    <%=bean.getGs_deliver_goods_counts()!=0?StringUtils.formatEDouble(bean.getGs_deliver_goods_counts(),2):"0"%><%=bean.getProduct_unit() %>
                                    </div>
                                </td>                           
                                <td class=top align="center"> 
                                    <div align="center" class="txt_content" id="total<%=i%>">
                                    <input type="text" size="4" value="<%=bean.getGs_signin_count()!=0?StringUtils.formatEDouble(bean.getGs_signin_count(),2):"0"%>" name="cursigninCount"><%=bean.getProduct_unit()%>
                                    </div>
                                </td>   
                                <td class=top align="center"> 
                                    <div align="center" class="txt_content" id="total<%=i%>">
                                    <%=DefineDic.getBalanceMode(bean.getGs_balance_mode())%>
                                    </div>
                                </td>                                 
                                <td class=top align="center"> 
                                    <div align="center" class="txt_content">
                                    <a href="<%=response.encodeURL(root+"/A150304.do")%>?orderId=<%=bean.getGs_order_tempid_order()%>&orderDetailId=<%=bean.getGs_order_detail_id()%>" target="_blank">详细</a>
                                    <input type="hidden" onfocus="setday(this)" size="10" readonly value="" name="cursigninDate">
                                    </div>
                                </td>
                            </tr> 
                    <%
                        }
                    %>
                          <tr class="bg_column" height=20>
                            <td width="960" height="16" colspan="20" align="right">
                                    <!--导航条-->
                                    <page:navigator type='text' queryForm="orderqueryform"/>
                            </td>
                          </tr>                 
                    <%
                        }else{
                    %>
                            <font color="red">没有符合条件的订单信息</font>
                    <%
                        }
                    %>
                    </tbody>
                </table>
                <br>
                
            <table  class=bg_table id=tableId cellspacing=1 cellpadding=0 style="padding-left:5;padding-right:5" width=100% align=center border=0>
            <tbody>
            <tr class="bg_column"><td colspan="4" class="top"><div align="left" class="txt_content"><b>交货确认信息填写</b></div></td></tr>
            <tr  height="20">
                <td class="bg_column" align=center width="15%">签收人</TD>
                <td class="bg_row_odd" width="35%">
                <div class="txt_content" align="left">
                <input type="text" name="signin_person" maxlength="200" value=""> <FONT color="#ff0033">*</FONT>&nbsp;</div></td>
                
                <td class="bg_column" width="15%" align="center">签收日期</td>
                <td class="bg_row_odd" width="35%">
                <input type="text" name="signin_date" maxlength="200" onfocus="WdatePicker({maxDate:'2100-01-01',startDate:'%y-%M-%d',dateFmt:'yyyy-MM-dd'})" readonly  value=""><FONT color="#ff0033">*</FONT></td>
            </tr>
            <tr height="20">
                <td class="bg_column"  align="center">备注</td>
                <td class="bg_row_odd" colspan="3">
                <textarea rows="6" name="signin_explain" maxlength="200" value="" cols="120"></textarea></td>
            </tr>
            </tbody>
            </table>
  
                </form>                     
            </td>
        </tr>
    </table>
    </center>
    <p align="center">  
        <input type="button" class="kuang" value="交货确认" onClick="process('S')">
    <br/>
    <br/>
    <br/>
    <br/>
    </p>    
    <form name="submitform" method="post">
        <div style='display:none'>      
    <%
        if(tList != null && tList.size() > 0){  
            for(int i=0; i< tList.size();i++){
    %>

    <input type="checkbox" name="orderDetailIds2">
    <input type="checkbox" name="cursigninCount2">          
    <input type="checkbox" name="cursigninDate2"> 
    <input type="checkbox" name="signin_person">
    <input type="checkbox" name="signin_explain">
    
    <input type="checkbox" name="n_ConcentricityId">
    <input type="checkbox" name="n_GoodsName">   
    <input type="checkbox" name="n_SupplyerName">    
    <input type="checkbox" name="n_GoodsSpec">
    <input type="checkbox" name='n_GoodsModel'>
    <input type="checkbox" name='n_GoodsBrand'>
    <input type="checkbox" name='n_GoodsCount'>
    <input type="checkbox" name='n_GoodsUnit'>                     
    <%              
            }
        }
    %>
    </div>
    </form>
<%      
    }
    if(tOrder != null && isRequery != null && isRequery.equals("true")){
%>
    <font size="2">数据查询中......</font>
<%      
    }
%>
</body>
</html>